Skip to main content

Scheduling

Scheduling allows workflows to execute automatically at predefined times or recurring intervals. Instead of requiring manual execution, scheduled workflows run in the background whenever their configured schedule becomes due. Scheduling is useful for automation, monitoring, maintenance, and recurring AI tasks.

What is Workflow Scheduling?

A workflow schedule defines when a workflow should execute. Conceptually:
The scheduler continuously checks for workflows that are ready to run.

Why Schedule Workflows?

Many business processes happen repeatedly. Examples include:
  • daily reports
  • hourly monitoring
  • nightly data synchronization
  • recurring document processing
  • periodic AI analysis
  • automated maintenance
Scheduling removes the need for manual execution.

Scheduler Architecture

BindAI separates scheduling from workflow execution.
The scheduler determines when to execute. The executor determines how to execute.

Workflow Schedule

A workflow schedule contains timing information. Typical properties include:
  • workflow identifier
  • next execution time
  • execution interval
  • enabled state
Example:

Scheduler

The scheduler manages registered schedules. Conceptually:
Only workflows whose scheduled time has arrived are returned for execution.

Due Workflows

During each scheduling cycle:
Future schedules remain inactive until their execution time arrives.

Recurring Workflows

Recurring schedules automatically calculate their next execution.
This allows workflows to repeat indefinitely.

One-Time Execution

Schedules may also execute only once.
No additional execution occurs unless a new schedule is created.

Rescheduling

After a recurring workflow finishes:
The scheduler updates the workflow’s next execution automatically.

Example

Suppose a workflow runs every hour.
Each execution automatically schedules the following run.

Background Automation

Scheduling enables continuous automation. Examples include:
  • checking system health
  • generating summaries
  • refreshing knowledge bases
  • sending notifications
  • cleaning temporary data
  • processing queued documents
These workflows execute without user interaction.

Scheduling vs Loops

Although both involve repeated execution, they solve different problems. Loops repeat during one workflow execution. Schedules create future workflow executions.

Time Zones

Production scheduling should use timezone-aware timestamps. Using timezone-aware datetime objects helps avoid issues caused by:
  • daylight saving time
  • server location differences
  • UTC/local time conversions
Consistent timezone handling improves reliability.

Enabling and Disabling

Schedules can be enabled or disabled.
Disabled schedules remain registered but do not execute.

Best Practices

  • Use timezone-aware datetimes.
  • Keep scheduled workflows idempotent whenever possible.
  • Monitor recurring workflows.
  • Use reasonable execution intervals.
  • Avoid overlapping executions of the same workflow unless intentionally supported.
  • Log execution history for troubleshooting.

Summary

Workflow scheduling enables BindAI to execute workflows automatically based on predefined schedules. By separating scheduling from execution, BindAI provides a flexible foundation for recurring automation while keeping workflow logic independent from timing concerns.